package com.onpositive.dataminer.rcp;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class PropertiesPerspectiveFactory implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {

		layout.addView("com.onpositive.dataminer.rcp.propertyViews", IPageLayout.LEFT, (float) 0.18, IPageLayout.ID_EDITOR_AREA);
		
		
		IFolderLayout createFolder0 = layout.createFolder("Values",	IPageLayout.TOP, (float) 0.7, IPageLayout.ID_EDITOR_AREA);
		
		createFolder0.addView("com.onpositive.dataminer.rcp.propvalues") ;
		createFolder0.addView("com.onpositive.dataminer.rcp.auditInspectionView") ;
		
		
		IFolderLayout createFolder1 = layout.createFolder("propDetails",	IPageLayout.BOTTOM, (float) 0.3, IPageLayout.ID_EDITOR_AREA);
		
		createFolder1.addView("com.onpositive.dataminer.rcp.view3");
		createFolder1.addView("com.onpositive.dataminer.rcp.autitsView");
		createFolder1.addView("com.onpositive.dataminer.rcp.auditManagerView");
		createFolder1.addView("com.onpositive.dataminer.rcp.inference");
		
		//layout.addView("com.onpositive.dataminer.rcp.propvalues", IPageLayout.TOP, (float) 0.8, IPageLayout.ID_EDITOR_AREA);
		
		layout.setEditorAreaVisible(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.propertyViews")
				.setCloseable(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.view3")
				.setCloseable(false);
		layout.getViewLayout("com.onpositive.dataminer.rcp.propvalues")
				.setCloseable(false);		
	}
}
